package com.it.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class MenuVo implements Serializable {
    private Long id;

    private String router;
    private String name;
    private String path;
    private String icon;
    private String authority;
    private Integer sort;
    private Long pid = 0L;
    private Integer mode;
    private List<MenuVo> children;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private String createUser;
    private String updateUser;
    private String remark;
    private Boolean deleted;
}
